package csc.fresher.entity;

import java.sql.Timestamp;



public abstract class CustomerAccount {
	private long accountNumber;
	private byte accountType;
	private double accountBalance;
	private String isRepeatable;
	private Timestamp createdDate;
	private AccountState accountState;
	private AccountTransactionState accountTransactionState;
	private long customerID;
	private boolean repeatable = Boolean.parseBoolean(isRepeatable);
	
	public long getAccountNumber() {
		return accountNumber;
	}
	public void setAccountNumber(long accountNumber) {
		this.accountNumber = accountNumber;
	}
	public byte getAccountType() {
		return accountType;
	}
	public void setAccountType(byte accountType) {
		this.accountType = accountType;
	}
	public double getAccountBalance() {
		return accountBalance;
	}
	public void setAccountBalance(double accountBalance) {
		this.accountBalance = accountBalance;
	}

	public Timestamp getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Timestamp createdDate) {
		this.createdDate = createdDate;
	}
	public AccountState getAccountState() {
		return accountState;
	}
	public void setAccountState(AccountState accountState) {
		this.accountState = accountState;
	}
	public long getCustomerID() {
		return customerID;
	}
	public void setCustomerID(long customerID) {
		this.customerID = customerID;
	}
	public CustomerAccount(long accountNumber, byte accountType,
			double accountBalance, boolean isRepeatable, Timestamp createdDate,
			AccountState accountState, AccountTransactionState accountTransactionState, long customerID) {
		super();
		this.accountNumber = accountNumber;
		this.accountType = accountType;
		this.accountBalance = accountBalance;
		this.repeatable = isRepeatable;
		this.createdDate = createdDate;
		this.accountState = accountState;
		this.accountTransactionState = accountTransactionState;
		this.customerID = customerID;
	}
	public CustomerAccount() {
		super();
	}
	public AccountTransactionState getAccountTransactionState() {
		return accountTransactionState;
	}
	public void setAccountTransactionState(AccountTransactionState accountTransactionState) {
		this.accountTransactionState = accountTransactionState;
	}
	public String getIsRepeatable() {
		return isRepeatable;
	}
	public void setIsRepeatable(String isRepeatable) {
		this.isRepeatable = isRepeatable;
	}
	public boolean getRepeatable() {
		return repeatable;
	}
	public void setRepeatable(boolean repeatable) {
		this.repeatable = repeatable;
	}
	
	
}
